package cn.hairui.blog.service.impl;

import cn.hairui.blog.model.Music;
import cn.hairui.blog.repository.MusicRepository;
import cn.hairui.blog.service.MusicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * <h2>请添加说明
 * </h2>
 * <ol>请添加详细说明
 * </ol>
 *
 * <h2>修改历史
 * </h2>
 * <ol>如有修改，请添加修改历史
 * </ol>
 *
 * </p>
 *
 * @author laoganbu
 * @version V1.0
 * @date 2019/8/1 15:30
 */
@Service(value = "musicService")
public class MusicServiceImpl implements MusicService {

    @Autowired
    private MusicRepository musicRepository;

    @Override
    public List<Music> findByUid(Integer uid) {
        return musicRepository.findByUid(uid);
    }
}
